#include "DHD_Messages.h"
#include "..\Game Objects\CBoss.h"
#include "..\Game Objects\CEnemy.h"
#include "..\Game Objects\CPlayer.h"
#include "..\Game Objects\CProjectile.h"
#include "..\Game Objects\CUnit.h"

CBaseMessage::CBaseMessage(MSGID msgID)
{
	m_msgID = msgID;
}

CDestroyEnemyMessage::CDestroyEnemyMessage(CEnemy *pEnemy) :  CBaseMessage(MSG_DESTROY_ENEMY)
{
	if (pEnemy)
	{
		m_pEnemy = pEnemy;
		pEnemy->AddRef();
	}
}
CDestroyEnemyMessage::~CDestroyEnemyMessage()
{
	if (this->m_pEnemy)
	{
		m_pEnemy->Release();
		m_pEnemy = NULL;
	}
}

